package data;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

/**
 *
 * @author ibrahimsabek
 */
public class KeywordVector {

    private long vectorID;
    private Map<String, Double> data;
    private Iterator it;

    public KeywordVector(){
    	data=new HashMap<String, Double>();
    	
    }

    public Map<String, Double> getData() {
        return data;
    }

    public void setData(Map<String, Double> data) {
        this.data = data;
    }

    public long getVectorID() {
        return vectorID;
    }

    public void setVectorID(long vectorID) {
        this.vectorID = vectorID;
    }
    
    
    public void showVector(){
    	System.out.println("V " + vectorID );
    	it = data.keySet().iterator(); 
    	while(it.hasNext()) {
    		String key = (String)it.next(); 
    		Double val = (Double)data.get(key); 
    		
    		System.out.println( "  "+key + "  - >    " +val );
    	
    	} 
    	
    }

    
}
